import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import store from './store'

// 引入字体图标样式
import '@/styles/fonts/font.less'

import '@/styles/index.less'

import axios from 'axios'

axios.defaults.baseURL = 'http://111.160.78.62:9931/api'

import BaiduMap from 'vue-baidu-map'

import {
  Container,
  Header,
  Aside,
  Main,
  Footer,
  Form,
  FormItem,
  Input,
  Button,
  Select,
  Option,
  Table,
  TableColumn,
  Switch,
  Cascader,
  Message,
  DatePicker,
  Radio,
  RadioGroup,
  Tree,
  Avatar,
  TimePicker,
  Transfer,
  Checkbox,
  CheckboxGroup
} from 'element-ui'

import vdr from 'vue-draggable-resizable-gorkys'

// 导入默认样式
import 'vue-draggable-resizable-gorkys/dist/VueDraggableResizable.css'

import '@/styles/draggableResize.less'

Vue.component('vdr', vdr)

Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Footer)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Button)
Vue.use(Select)
Vue.use(Option)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Switch)
Vue.use(Cascader)
Vue.use(DatePicker)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(Tree)
Vue.use(Avatar)
Vue.use(TimePicker)
Vue.use(Transfer)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)

Vue.use(BaiduMap, {
  ak: 'TUdnPWT0yQqTcQbfsm1b0XRHS82RGmBF'
})

Vue.prototype.$Http = axios

Vue.prototype.$message = Message

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
